package jsu.xxy.coffee3.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jsu.xxy.coffee3.domain.Supplier;
import jsu.xxy.coffee3.domain.SupplierAndMaterials;

import java.util.List;

/**
* @author 张从轩
* @description 针对表【supplier】的数据库操作Service
* @createDate 2023-06-03 06:43:14
*/
public interface SupplierService extends IService<Supplier> {
    Page<SupplierAndMaterials> getAll(Integer pageNo, Integer pageSize);

    List<SupplierAndMaterials> getAllNoPage();

    Page<SupplierAndMaterials> selectByName(String name, Integer pageNum, Integer pageSize);

    List<SupplierAndMaterials> selectByNameSupplier(String nameSupplier, Integer pageNo, Integer pageSize);

    boolean deleteById(Integer mid, Integer supplierid);
}
